package com.jinghua.treatment.mapper;

import com.jinghua.treatment.entity.SysInquirySubjectCategoryItem;
import com.jinghua.treatment.entity.SysInquirySubjectCategoryItemExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysInquirySubjectCategoryItemMapper {
    int countByExample(SysInquirySubjectCategoryItemExample example);

    int deleteByExample(SysInquirySubjectCategoryItemExample example);

    int deleteByPrimaryKey(Integer uuid);

    int insert(SysInquirySubjectCategoryItem record);

    int insertSelective(SysInquirySubjectCategoryItem record);

    List<SysInquirySubjectCategoryItem> selectByExample(SysInquirySubjectCategoryItemExample example);

    // 根据二级分类编码获取问诊单三级分类信息列表
    List<SysInquirySubjectCategoryItem> selectLevel3ByTamplate(@Param("categoryCode") String categoryCode);

    SysInquirySubjectCategoryItem selectByPrimaryKey(Integer uuid);

    int updateByExampleSelective(@Param("record") SysInquirySubjectCategoryItem record, @Param("example") SysInquirySubjectCategoryItemExample example);

    int updateByExample(@Param("record") SysInquirySubjectCategoryItem record, @Param("example") SysInquirySubjectCategoryItemExample example);

    int updateByPrimaryKeySelective(SysInquirySubjectCategoryItem record);

    int updateByPrimaryKey(SysInquirySubjectCategoryItem record);
}